package book;

public class Book {
    private String name ;
    private String writer ;
    private int money ;

    public Book(String name, String writer, int money) {
        this.name = name;
        this.writer = writer;
        this.money = money;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", writer='" + writer + '\'' +
                ", money=" + money +
                '}';
    }

    public String getName() {
        return name;
    }
}
